#define _CRT_SECURE_NO_WARNINGS 1
#include"Sort.h"
void PrintArrary(int* a, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", a[i]);

	}
	printf("\n");
}
int main()
{
	int a[] = { 0,9,8,7,6,5,4,3,2,1,0 ,-1,-2,-3,-4,-5,-6,-7,-8,-9 ,0 ,9 };
	//int a[] = { 6,1,2,7,9,3,4,5,10,8};
	//InsertSort(a, sizeof(a) / sizeof(int));
	//ShellSort(a, sizeof(a) / sizeof(int));
	//SelectSort(a, sizeof(a) / sizeof(int));
	//HeapSort(a, sizeof(a) / sizeof(int));
	//BubbleSort(a, sizeof(a) / sizeof(int));
	//QuickSort(a, 0,sizeof(a) / sizeof(int)-1);
	//MergeSort(a, sizeof(a) / sizeof(int));
	//MergeSortNonR(a,sizeof(a) / sizeof(int));
	CountSort(a, sizeof(a) / sizeof(int));
	PrintArrary(a, sizeof(a) / sizeof(int));
	return 0;
}